﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Model;
using Controller;

namespace Facade
{
    public class ReportFacade
    {
        public IList<AnnualReport> GetAnnualReport(int year, Employee User)
        {
            IList<AnnualReport> d = new List<AnnualReport>();
            ReportController cont = new ReportController();
            d = cont.GetAnnualReportData(year, User);
            return d;
        }

        public string GenerateExcel(int year, Employee User, string ReportPath, string outputPath)
        {
            ReportController cont = new ReportController();
            string result = cont.GenerateExcel(year, User, ReportPath, outputPath);
            return result;
        }

        public string GenerateManualKPI(int year, Employee user, string logicpath, string outputpath, KPIAssignDetail KPIs)
        {
            ReportController cont = new ReportController();
            string result = cont.GenerateManualKPI(year, user, logicpath, outputpath, KPIs);
            return result;
        }

        public string GenerateHandoverKPI(int year, Employee User, string ReportPath, string outputpath, KPIAssignDetail KPIs)
        {
            ReportController cont = new ReportController();
            string result = cont.GenerateHandoverKPI(year, User, ReportPath, outputpath, KPIs);
            return result;
        }
    }
}